package dtos;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;




public class TicketDTO implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 7813572663958626584L;
	private int id;
	private Date date;
	private String description;
	private String status;
	private int idResponse;
	private List<Integer> techresources=new ArrayList<>();
	private int idThreshresource;
	private int idUser;
	private int idResticket;
	private int idTechticket;
	
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public Date getDate() {
		return date;
	}
	public void setDate(Date date) {
		this.date = date;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}
	
	
	
	public int getIdResponse() {
		return idResponse;
	}
	public void setIdResponse(int idResponse) {
		this.idResponse = idResponse;
	}
	public List<Integer> getTechresources() {
		return techresources;
	}
	public void setTechresources(List<Integer> techresources) {
		this.techresources = techresources;
	}
	public int getIdThreshresource() {
		return idThreshresource;
	}
	public void setIdThreshresource(int idThreshresource) {
		this.idThreshresource = idThreshresource;
	}
	public int getIdUser() {
		return idUser;
	}
	public void setIdUser(int idUser) {
		this.idUser = idUser;
	}
	public int getIdResticket() {
		return idResticket;
	}
	public void setIdResticket(int idResticket) {
		this.idResticket = idResticket;
	}
	public int getIdTechticket() {
		return idTechticket;
	}
	public void setIdTechticket(int idTechticket) {
		this.idTechticket = idTechticket;
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + id;
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		TicketDTO other = (TicketDTO) obj;
		if (id != other.id)
			return false;
		return true;
	}
	
	public void addTechresource(int id) {
		this.techresources.add(id);
	}
	
}
